package dryworks.jsf.parsers;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import org.w3c.dom.Node;

public class NodesNamesCollector implements INodeVisitor{
	Map<String, String> names = new HashMap<String, String>();

	@Override
	public void visit(Node node) {
		if (node.getNodeName()!=null && node.getNodeName().indexOf(":") != -1) {
			names.put(node.getNodeName(), node.getNodeName());
		}
		
	}
	public Set<String> getNames() {
		return names.keySet();
	}
}
